package com.sbs.admin.vo;

import com.sbs.base.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class UserVo {
    @NotBlank
    @Length(min = 4, max = 20)
    private String username;
    @NotBlank
    @Length(min = 6, max = 20)
    private String password;
    @NotBlank
    @Length(min = 11, max = 11)
    @IsMobile
    private String mobile;

}
